const Global = {
  state: {
    CurrentPageCommonComp: '', // 当前页面的公共组件，没有则传空字符串

    ApiComplete: false, // api调用成功
    RouteComplete: false // 路由跳转成功

  },
  mutations: {
    SetCurrentPageCommonComp: (state, componentsName) => {
      state.CurrentPageCommonComp = componentsName
    },
    ToogleApiComplete: state => {
      state.ApiComplete = !state.ApiComplete
    },
    ToogleRouteComplete: state => {
      state.RouteComplete = !state.RouteComplete
    }
  }
}

export default Global
